Page({

  data: {
    current: 0,
    categoryNum: 3,
    hover: ''
  },

  onLoad() {
    wx.hideTabBarRedDot({
      index: 1
    })
  },
  swipperChanged(e: WechatMiniprogram.SwiperChange) {
    const { current } = e.detail
    this.setData({
      current: current
    })
  },
  onLeftClick(e: WechatMiniprogram.ControlTap) {
    const { id } = e.target.dataset
    this.setData({
      current: id
    })
  }
})